<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'maintain_detail.jsp' starting page</title>
	
<link rel="stylesheet" type="text/css" href="../../css/mokstyle.css" />
<link href="style1.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
	function init(){
		if("${maintain.result}"=="1"){
			document.getElementById("result").value = "成功"
		}else if("${maintain.result}"=="0"){
			document.getElementById("result").value = "报废"
		}else{
			document.getElementById("result").value = "再维修"
		}
		var detailTable = document.getElementById("detailTable");
		var length = detailTable.rows.length;
		for (i=1; i<length; i++) {
			detailTable.rows[i].cells[0].innerHTML = i;
		}
	}
</script>
  </head>
  
  <body onload="init();">
   <div  id="wrap">
 	<div class="header">
       		<div class="logo"><a href="/aasimp/mok/maintenance/index_getMtInfo"><img src="../../images/logo.gif" alt="" title="" border="0" /></a></div>            
        <div id="menu">
            <ul>                                                                       
            <li><a href="/aasimp/mok/maintenance/index_getMtInfo">首页</a></li>
            <li><a href="/aasimp/mok/maintenance/info_getcompany">个人资料</a></li>
            <li><a href="/aasimp/mok/maintenance/odd_getOdd" >维修申请</a></li>
            <li><a href="/aasimp/mok/maintenance/approve_showApprove">审批维修</a></li>
            <li class="selected"><a href="/aasimp/mok/maintenance/mt_showmts">维修记录</a></li>
            <li><a href="sendInfo.jsp">信息发布</a></li>
            <li><a href="/aasimp/mok/maintenance/report_showMtReport">报表统计</a></li>
            </ul>
        </div>  
       </div> 
       
       <div class="center_content" style="background-color:#FFFFFF;">
       	<div class="left_content" style="width: 880px">
       		<div class="crumb_nav">
            <a href="/aasimp/mok/maintenance/index_getMtInfo">home</a> &gt;&gt; <a href="maintain.jsp">维修记录</a> &gt;&gt; 维修记录详细
            </div>
            <div class="title"><span class="title_icon"><img src="../../images/bullet1.gif" alt="" title="" /></span>
            维修记录详细
            </div>
        <center>
        <div class="feat_prod_box_details" id="history" style="display: block;">
        <form id="form1" name="mainFrm" method="post" action="/aasimp/mok/maintenance/mt_saveMt">
<table width="100%"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="30px" nowrap class="toolbar">&nbsp;</td>
    <td width="40px" nowrap class="toolbar" onClick="document.mainFrm.gb.click()"><a href="javascript:void(0)"  style="text-decoration:none"><img src="images/cancel.gif">关闭</a></td>
	<td nowrap class="toolbar">&nbsp;</td>
  </tr>
</table>

<table id="headTable" width="100%"  border="0" align="center" class="a1">
  <tr align="justify">
    <td>维修单号</td>
    <td><input type="text" value="${maintain.maintainId }" size="15" readonly="readonly" name="mtid" id="mtid"/>
      </td>
    <td>预约单号</td>
    <td><input type="text" value="${maintain.oddId }" size="15" name="oddId" id="oddId" readonly="readonly"/>
      </td>
    <td>维修日期</td>
    <td><input name="mtDate" id="mtDate" type="text" size="15" value="${maintain.maintainDate }" readonly="readonly">
        </td>
    <td>维修公司</td>
    <td><input type="text" size="20" readonly="readonly" id="company" name="company" value="${maintain.company}"/>
      </td>
  </tr>
  <tr align="justify">
    <td>车辆识别号</td>
    <td><input id="vin" value="${maintain.vin }" type="text" size="15" name="vin" readonly="readonly"/>
       </td>
    <td>维修人员</td>
    <td><input type="text" size="15" readonly="readonly" name="person" id="person" value="${maintain.handperson}"/></td>
    <td>维修费用</td>
    <td><input type="text" value="${maintain.maintainPrice }" size="15" name="mtprice" id="mtprice" readonly="readonly"/></td>
    <td>配件费用</td>
    <td><input type="text" value="${maintain.partsPrice }" size="20" readonly="readonly" name="ptprice" id="ptprice"/></td>
   </tr>
  <tr align="justify">
    <td>维修总费用</td>
    <td><input type="text" value="${maintain.toprice }" size="15" readonly="readonly" name="mttotal" id="mttotal"/></td>
    <td>维修结果</td>
    <td><input type="text" size="15" readonly="readonly" id="result"/></td>
    <td>备注</td>
    <td colspan="3"><input type="text" size="49" name="remark" id="remark" value="${maintain.remark }" readonly="readonly"/></td>
   </tr>
  <tr>
  	<td class="title2"></td>
  </tr>
</table>
<table width="100%"  border="0" align="center" cellspacing="1" id="detailTable">
  <tr>
    <td class="toolbar"> 序号 </td>
    <td class="toolbar"> 维修部位 </td>
    <td class="toolbar"> 配件编号 </td>
    <td class="toolbar"> 配件名称 </td>
    <td class="toolbar"> 数量单位 </td>
    <td class="toolbar"> 配件数量 </td>
    <td class="toolbar"> 销售单价</td>
    <td class="toolbar"> 总价</td>
    <td class="toolbar">&nbsp;</td>
  </tr>
  <c:forEach var="item" items="${requestScope.items}">
	  <tr>
	    <td align="center"></td>
	    <c:if test="${item.itemsId=='1' }">
	   		<td align="left">发动机配件系列</td>			
	    </c:if>
	    <c:if test="${item.itemsId=='2' }">
	   		<td align="left">制动零部件系列</td>			
	    </c:if>
	    <c:if test="${item.itemsId=='3' }">
	   		<td align="left">汽车电器系列</td>			
	    </c:if>
	    <c:if test="${item.itemsId=='4' }">
	   		<td align="left">汽车底盘</td>			
	    </c:if>
	    <c:if test="${item.itemsId=='5' }">
	   		<td align="left">汽车车身</td>			
	    </c:if>
		<td align="center">${item.partId }</td>
		<td align="center">${item.paetName }</td>
	    <td align="center">${item.unitname }</td>
	    <td align="center">${item.num }</td>
	    <td align="center">${item.unitprice }</td>
	    <td align="center">${item.itemprice }</td>
	  </tr>
  </c:forEach>
</table>
<table width="100%"  border="0" align="center" cellspacing="1">
  <tr>
    <td class="title2"></td>
  </tr>
</table>
<br>
<div align="center">
    <input type="button" id="gb" value="关闭" onClick="window.location='/aasimp/mok/maintenance/mt_showmts'"/>
</div>
</form> 
	 </div>					
					</center>
            
            
        <div class="clear"></div>
        </div><!--end of left content-->
        
       
       <div class="clear"></div>
       </div><!--end of center content-->
       <div class="footer">
       	<div class="left_footer"><img src="../../images/footer_logo.gif" alt="" title="" /><br /> </div>
        <div class="right_footer">
       
        </div>
        
       
       </div>
      </div>  
<iframe width=174 height=189 name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="calendar/ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; left:-500px; top:0px;"></iframe>

  </body>
</html>
